extend layout
block main
	h3.main-title 最热乐谱
	ul.main-list
		for hotStave in hotStaves
			li
				a(href="/stave/"+hotStave.id)=hotStave.name
					.pull-right.small=hotStave.singer
		li.more 更多>>

		
	h3.main-title 最近乐谱
	ul.main-list
		for newStave in newStaves
			li
				a(href="/stave/"+newStave.id)=newStave.name
					.pull-right.small=newStave.singer
		li.more 更多>>




	h3.main-title 最热歌手
	ul.main-list
		for hotSinger in hotSingers
			li
				a(href="/stave/search/singer?name="+hotSinger.name)=hotSinger.name
		li.more 更多>>

	.search
		form.pure-form(onsubmit = "return search()")
			fieldset
				input.pure-input(type="text")
				button.pure-button.pure-button-primary(type="submit") 搜索

	script
		var search = function(){
			var kw = $('.search input').val()
			location = '/stave/search/like?kw='+kw;
			return false;
		}